Chapter 40: Automating Tasks with the Windows Script Host
![]()
Chapter Introduction If you've used computers long, you may remember DOS batch files, which are text files that contain lists of commands. Using batch files, you could store a series of DOS commands and run the whole series by issuing just one command.
When Windows supplanted DOS, many advanced users complained about the lack of a similar scripting capability in Windows. The Windows Script Host fills this lack by letting you create and run scripts. You can run scripts from Windows by using the Wscript program or from the DOS prompt by using the Cscript program. This chapter describes how to create script files, run them, and configure the Wscript program.